<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body>
    <div id="editor"></div>
    <script>
        var html;
        window.onload = function () {
            window.addEventListener('message', function (messageEvent) {
                html = messageEvent.data;
                var obj = document.getElementById('editor')
                obj.innerHTML = html
                document.forms[0].submit();
            })
        }
    </script>
</body>

</html>